var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("BaseModuleUI"),
    a = e("NotifyEventType"),
    i = e("GlobalParams"),
    r = e("CommonHelper"),
    s = e("UIManager"),
    l = e("GetZsViewUI"),
    c = cc._decorator,
    d = c.ccclass,
    h = c.property,
    _ = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (t.zs_num_label = null), t;
        }
        return (
            __extends(t, e),
            (t.prototype.initView = function () {
                this.showCoinInfo();
            }),
            (t.prototype.addEvent = function () {
                this.attachEvent(a.default.UPDATE_HAVE_ZS_NUMBER, this.showCoinInfo, this);
            }),
            (t.prototype.detachEvents = function () {}),
            (t.prototype.showCoinInfo = function () {
                var e = i.GlobalParams.PlayerInfo.value;
                this.zs_num_label.string = r.default.getCoinByString(e.zs);
            }),
            (t.prototype.showVideoView = function () {
                i.GlobalParams.PlayGuideMode ||
                    cc
                        .find("UIManager")
                        .getComponent(s.default)
                        .showPopup("GetZsViewUI", function (e) {
                            e.getComponent(l.default).showPopupInfoView(0);
                        });
            }),
            __decorate([h(cc.Label)], t.prototype, "zs_num_label", void 0),
            __decorate([d], t)
        );
    })(n.default);
o.default = _;
